﻿package{
	import flash.display.Sprite;
	import flash.display.Shape;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	import flash.text.TextField;
	import flash.text.TextFormat;
	import flash.xml.*;
	import flash.events.*;
	import flash.display.Graphics;
	import flash.display.GradientType;
	import flash.geom.Matrix;
	import flash.geom.Point;
	import flash.display.SimpleButton;
		public class DocumentPage extends Sprite{
			private var txt:TextField=new TextField();
			private var txtFormat:TextFormat=new TextFormat();
			private var bar:Bar = new Bar();
			private var container:Sprite= new Sprite();
				public function DocumentPage(url:String=null){
					//addChild(container);
					bar.scaleX=.65;
					bar.scaleY=.65;
					addChild(bar);
					txtFormat.bold=true;
					txtFormat.size=22;
					txtFormat.font="Times New Roman";
					txt.defaultTextFormat=txtFormat;
					txt.x=5;
					txt.y=-20;
					txt.width=200-10;
					txt.height=30;
					txt.mouseEnabled=false;
					txt.text=url;
					bar.addChild(txt);			
					//addEventListener(Event.ADDED_TO_STAGE,addedToStage);
//					addEventListener(Event.REMOVED_FROM_STAGE,removedFromStage);			
//						
					}
//				public function
			}
	}